<?php if ($this->_var['brand_list']): ?>
<div id="brandList" class="qq_style_1" style="clear:both;">
  <h3>
  	<span>品牌专区</span>
    <p class="more"><a href="brand.php">更多</a></p>
  </h3>
  <div class="body">
  
  	<div id="brandScroller" style="margin-top:8px;">
    <?php $_from = $this->_var['brand_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'brand');$this->_foreach['brand_foreach'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['brand_foreach']['total'] > 0):
    foreach ($_from AS $this->_var['brand']):
        $this->_foreach['brand_foreach']['iteration']++;
?>
		<?php if (($this->_foreach['brand_foreach']['iteration'] - 1) <= 20): ?>
    <?php if ($this->_var['brand']['brand_logo']): ?>
    <p>
    <a href="<?php echo $this->_var['brand']['url']; ?>">
    	<img src="data/brandlogo/<?php echo $this->_var['brand']['brand_logo']; ?>" width="70px" height="40px" alt="<?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?> (<?php echo $this->_var['brand']['goods_num']; ?>)" />
     </a>
     </p>
    <?php else: ?>
    <p class="textLink"><a href="<?php echo $this->_var['brand']['url']; ?>"><?php echo htmlspecialchars($this->_var['brand']['brand_name']); ?></a> <?php if ($this->_var['brand']['goods_num']): ?><span class="textDesc">(<?php echo $this->_var['brand']['goods_num']; ?>)</span><?php endif; ?>
		</p>
    <?php endif; ?>
		<?php endif; ?>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </div>
  </div>
  
</div>
<?php endif; ?>